package com.idanchuang.component.redis;

import com.idanchuang.component.redis.warmup.ComponentRedisWarmUp;
import com.idanchuang.sun.client.common.ConditionalOnSunEnabled;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author yjy
 * @date 2019/11/27 11:09
 **/
@Configuration
public class ComponentRedisWarmUpAutoConfiguration {

    @Bean("acgComponentRedisWarmUp")
    @ConditionalOnMissingBean(name = "acgComponentRedisWarmUp")
    public ComponentRedisWarmUp acgComponentRedisWarmUp() {
        return new ComponentRedisWarmUp();
    }

}
